import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Course from '@/components/Course'
import shizhan from '@/components/shizhan'
import detail from '@/components/detail'
import Cart from '@/components/Cart'
import Login from '@/components/Login'
import Register from "@/components/Register";
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [


    {
      path:'/',
      name:'Home', // 给路径起别名
      component:Home
    },
    {
      path: '/courses',
      name: 'Courses',
      component: Course
    },
    {
      path:'/shizhan',
      name:'shizhan',
      component: shizhan
    },
    {
      path:'/detail',
      name:'detail',
      component: detail
    },
    {
       path:'/Cart',
      name:'Cart',
      component: Cart
    },
    {
      path:'/login/',
      name:'Login', // 给路径起别名
      component:Login
    },

        {
      path:'/register/',
      name:'Register', // 给路径起别名
      component:Register
    },
  ]
})
